<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	request.setAttribute("ctx", path);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css"
	href="${ctx}/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${ctx}/easyui//themes/icon.css">
 
<script type="text/javascript" src="${ctx}/easyui//jquery.min.js"></script>
<script type="text/javascript" src="${ctx}/easyui//jquery.easyui.min.js"></script>
<script type="text/javascript">
var toolbar = [
    { 
	text:'Add',
	iconCls:'icon-add',
	handler:function(){
		alert('add')
		}
    },'-',
	{
    text:'Cut',
	iconCls:'icon-cut',
	handler:function(){
		alert('cut')}
    },
	'-',
	{
    text:'Save',
    iconCls:'icon-save',
    handler:function(){
    	alert('save')
    }        
    }];    
    </script>

</head>
<body>
	<table class="easyui-datagrid"
		data-options="url:'${ctx}/easyui/demo/layout/datagrid_data1.json',
		toolbar:toolbar,method:'get',
		border:true,
		singleSelect:true,
		fit:true,
		rownumbers:true,
		pagination:true,
		fitColumns:true">
		<thead>
			<tr>
				<th data-options="field:'itemid'" width="80">Item ID</th>
				<th data-options="field:'productid'" width="100">Product ID</th>
				<th data-options="field:'listprice',align:'right'" width="80">List
					Price</th>
				<th data-options="field:'unitcost',align:'right'" width="80">Unit
					Cost</th>
				<th data-options="field:'attr1'" width="150">Attribute</th>
				<th data-options="field:'status',align:'center'" width="60">Status</th>
			</tr>
		</thead>
	</table>
</body>
</html>



